﻿@model  NB.MGJ.Model.AntiFleeing_PackBox
@{
    Layout = null;
    //Sys_User user = ViewBag.User as Sys_User;
}
@*编辑退货*@
<script src="~/Scripts/MGJJS/FleeGoods/CommonBox.js"></script>
<style>
    .form-horizontal .form-group {
        margin-bottom: 15px;
    }
</style>
<form class="form-horizontal" onkeydown="if(event.keyCode==13){return false;}">
    <div class="form-group">
        <label class="col-sm-2 control-label">装箱编号：</label>
        <div class="col-sm-10">
            @*@Html.TextBoxFor(p => p.FormCode, new { @class = "form-control", @placeholder = "装箱编号", maxlength = 64, disabled = "disabled" })*@
            <input type="text" class="form-control" placeholder="装箱编号" name="FormCode" id="FormCode" value="@Model.FormCode" readonly>
            <div style="color:red">装箱编号：当前时间</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">拖标关系：</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(p => p.ScalingRelation, new { @class = "form-control", @placeholder = "拖标关系", maxlength = 64, disabled = "disabled" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">箱数：</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(p => p.Num, new { @class = "form-control", @placeholder = "装箱数量", maxlength = 64, disabled = "disabled" })
        </div>
    </div>
    <div class="form-group" style="display:flex;align-items:center">
        <label class="col-sm-2 control-label">物流码：</label>
        <div class="col-sm-10">
            <a href="#" onclick="$.MGJ.CommonBox.Dialog_CommonBox('@Model.FilePath')">查看物流码</a>
        </div>
    </div>
</form>
<script>
    var formCode = '@Model.FormCode';
    if (formCode.replace(/(^s*)|(s*$)/g, "").length == 0) {
        $.MGJ.CommonBox.FromCode();
    }
</script>